package com.wantyx.bean.car;

import lombok.extern.slf4j.Slf4j;

/**
 * 作者 : wantyx
 * 创建时间 : 2023/11/3
 * 实现功能 :
 */
@Slf4j
public class ZeekeCar extends Car{
    @Override
    public void drive() {
        log.info("driving zeeke car!");
        log.info("your zk001 sound:{},price:{}.",this.getSound(),this.getPrice());
    }

    public enum ZKSound{
        YAMAHA(0.6f,"雅马哈","YAMAHA"),
        ORIGINAL(0.0f,"原装","ORIGINAL");
        float price;
        String chName;
        String name;

        ZKSound(float price, String chName,String name) {
            this.price = price;
            this.chName = chName;
            this.name = name;
        }

        public float getPrice() {
            return price;
        }

        public void setPrice(float price) {
            this.price = price;
        }

        public String getChName() {
            return chName;
        }

        public void setChName(String chName) {
            this.chName = chName;
        }
    }
}
